package android.framework.widget;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

public class CustomToast extends Toast {

	private ImageView iconView;
	private boolean isErr;
	private TextView msgView;
	private View view;

	public CustomToast(Context context) {
		super(context);
		this.msgView = ((TextView) this.view.findViewById(2131165615));
		this.iconView = ((ImageView) this.view.findViewById(2131165614));
		setGravity(16, 0, 0);
		setView(this.view);
	}

	public CustomToast(Context paramContext, int paramInt) {
		super(paramContext);
		// this.view = UIs.inflate(paramContext, 2130903145, null, false);
		this.msgView = ((TextView) this.view.findViewById(2131165615));
		this.iconView = ((ImageView) this.view.findViewById(2131165614));
		setGravity(16, 0, 0);
		setView(this.view);
		setMsg(paramInt);
	}

	public CustomToast(Context paramContext, String paramString) {
		super(paramContext);
		// this.view = UIs.inflate(paramContext, 2130903145, null, false);
		this.msgView = ((TextView) this.view.findViewById(2131165615));
		this.iconView = ((ImageView) this.view.findViewById(2131165614));
		setGravity(16, 0, 0);
		setView(this.view);
		setMsg(paramString);
	}

	public void setErr(boolean paramBoolean) {
		this.isErr = paramBoolean;
		if (paramBoolean)
			this.iconView.setImageResource(2130837652);
		else {
			this.iconView.setImageResource(2130838037);
		}
	}

	public void setMsg(int paramInt) {
		this.msgView.setText(paramInt);
	}

	public void setMsg(String paramString) {
		this.msgView.setText(paramString);
	}

	public void show() {
		super.show();
	}
}
